<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>实名认证 - 奢享时光</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
  <style>
    :root {
      --primary-gradient: linear-gradient(135deg, #7F00FF, #E100FF);
      --secondary-gradient: linear-gradient(135deg, #00F5A0, #00D9F5);
      --primary-color: #7F00FF;
      --secondary-color: #00F5A0;
      --accent-color: #FFE600;
      --dark-bg: #2D1B69;
      --light-bg: #6B3FA0;
      --text-light: #FFFFFF;
      --text-secondary: #E0D5FF;
      --card-bg: rgba(255, 255, 255, 0.1);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      --border-radius: 16px;
      --border: 1px solid rgba(255, 255, 255, 0.18);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: 'Noto Sans SC', 'Poppins', sans-serif;
      background: var(--dark-bg);
      color: var(--text-light);
      font-size: 14px;
      line-height: 1.5;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      outline: none;
    }

    .app-container {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      background: linear-gradient(180deg, var(--dark-bg), var(--light-bg));
      position: relative;
      overflow: hidden;
      padding-bottom: 70px;
    }

    /* 背景装饰 */
    .bg-decoration {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-circle {
      position: absolute;
      border-radius: 50%;
    }

    .bg-circle:nth-child(1) {
      width: 300px;
      height: 300px;
      top: -150px;
      right: -100px;
      background: radial-gradient(circle, rgba(225, 0, 255, 0.2), rgba(225, 0, 255, 0));
    }

    .bg-circle:nth-child(2) {
      width: 250px;
      height: 250px;
      bottom: 10%;
      left: -100px;
      background: radial-gradient(circle, rgba(0, 245, 160, 0.15), rgba(0, 245, 160, 0));
    }

    /* 顶部导航 */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: rgba(45, 27, 105, 0.8);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: var(--border);
    }

    .back-button {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .page-title {
      font-size: 18px;
      font-weight: 600;
    }

    .header-actions {
      display: flex;
      gap: 15px;
    }

    .header-actions i {
      font-size: 18px;
      color: var(--text-light);
      opacity: 0.9;
    }

    /* 内容区域 */
    .content {
      position: relative;
      z-index: 1;
      padding: 20px;
    }

    /* 状态卡片 */
    .status-card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
      text-align: center;
    }

    .status-icon {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
      margin: 0 auto 15px;
    }

    .status-icon.warning {
      color: var(--accent-color);
    }

    .status-icon.success {
      color: var(--secondary-color);
    }

    .status-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .status-desc {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 20px;
    }

    /* 表单区域 */
    .form-section {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .section-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-title i {
      color: var(--accent-color);
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      font-size: 14px;
      margin-bottom: 8px;
      display: block;
    }

    .form-control {
      width: 100%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 12px 15px;
      font-size: 15px;
      color: var(--text-light);
      font-family: inherit;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--primary-color);
    }

    .form-hint {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 5px;
    }

    /* 图片上传 */
    .upload-area {
      display: flex;
      gap: 15px;
      margin-top: 10px;
    }

    .upload-box {
      flex: 1;
      aspect-ratio: 3/2;
      background: rgba(255, 255, 255, 0.05);
      border: 1px dashed rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .upload-box:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .upload-icon {
      font-size: 24px;
      color: var(--text-secondary);
      margin-bottom: 10px;
    }

    .upload-text {
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* 按钮 */
    .button-container {
      display: flex;
      justify-content: center;
      margin-top: 10px;
    }

    .primary-button {
      background: var(--primary-gradient);
      padding: 12px 30px;
      border-radius: 100px;
      font-size: 16px;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s ease;
      box-shadow: 0 5px 15px rgba(127, 0, 255, 0.3);
    }

    .primary-button:active {
      transform: scale(0.97);
    }

    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-width: 480px;
      margin: 0 auto;
      background: rgba(45, 27, 105, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: var(--border);
      display: flex;
      justify-content: space-around;
      padding: 12px 0;
      z-index: 100;
    }

    .nav-button {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      color: var(--text-secondary);
      font-size: 12px;
      padding: 5px 0;
      flex: 1;
      transition: all 0.3s ease;
    }

    .nav-button i {
      font-size: 18px;
      margin-bottom: 2px;
    }

    .nav-button.active {
      color: var(--accent-color);
    }

    /* 认证步骤 */
    .steps-container {
      display: flex;
      position: relative;
      margin: 30px 0;
    }

    .step {
      flex: 1;
      text-align: center;
      position: relative;
      z-index: 2;
    }

    .step-number {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 10px;
      font-size: 14px;
      font-weight: 600;
      position: relative;
      z-index: 2;
    }

    .step.active .step-number {
      background: var(--primary-gradient);
      color: var(--text-light);
    }

    .step.completed .step-number {
      background: var(--secondary-color);
      color: var(--dark-bg);
    }

    .step.completed .step-number:before {
      content: '\f00c';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
    }

    .step-label {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .step.active .step-label {
      color: var(--text-light);
      font-weight: 500;
    }

    .step.completed .step-label {
      color: var(--secondary-color);
    }

    .step-line {
      position: absolute;
      top: 15px;
      left: 15%;
      right: 15%;
      height: 2px;
      background: rgba(255, 255, 255, 0.1);
      z-index: 1;
    }

    .step-progress {
      position: absolute;
      top: 15px;
      left: 15%;
      width: 0%;
      height: 2px;
      background: var(--secondary-gradient);
      z-index: 1;
      transition: width 0.5s ease;
    }

    /* 认证成功状态 */
    .auth-success {
      display: none;
    }

    .auth-success.active {
      display: block;
    }

    .auth-info {
      display: flex;
      gap: 15px;
      margin-top: 20px;
    }

    .auth-info-item {
      flex: 1;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
    }

    .auth-info-label {
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 5px;
    }

    .auth-info-value {
      font-size: 15px;
      font-weight: 500;
    }

    .auth-form {
      display: block;
    }

    .auth-form.hidden {
      display: none;
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 背景装饰 -->
    <div class="bg-decoration">
      <div class="bg-circle"></div>
      <div class="bg-circle"></div>
    </div>

    <!-- 顶部导航 -->
    <header class="header">
      <a href="profile.html" class="back-button">
        <i class="fas fa-arrow-left"></i>
      </a>
      <div class="page-title">实名认证</div>
      <div class="header-actions">
        <i class="fas fa-question-circle"></i>
      </div>
    </header>

    <!-- 主要内容 -->
    <main class="content">
      <!-- 认证状态卡片 -->
      <section class="status-card">
        <div class="status-icon warning">
          <i class="fas fa-exclamation-triangle"></i>
        </div>
        <div class="status-title">未完成实名认证</div>
        <div class="status-desc">根据相关法规要求，参与拼团和股权收益需要完成实名认证</div>
        
        <!-- 认证步骤 -->
        <div class="steps-container">
          <div class="step-line"></div>
          <div class="step-progress" style="width: 0%"></div>
          
          <div class="step active">
            <div class="step-number">1</div>
            <div class="step-label">填写信息</div>
          </div>
          <div class="step">
            <div class="step-number">2</div>
            <div class="step-label">上传证件</div>
          </div>
          <div class="step">
            <div class="step-number">3</div>
            <div class="step-label">认证完成</div>
          </div>
        </div>
      </section>

      <!-- 认证表单 -->
      <form class="auth-form" id="auth-form">
        <!-- 个人信息 -->
        <section class="form-section" id="personal-info">
          <div class="section-title">
            <i class="fas fa-user"></i>
            <span>个人基本信息</span>
          </div>
          
          <div class="form-group">
            <label class="form-label">真实姓名</label>
            <input type="text" class="form-control" placeholder="请输入您的真实姓名" required>
          </div>
          
          <div class="form-group">
            <label class="form-label">身份证号码</label>
            <input type="text" class="form-control" placeholder="请输入18位身份证号码" maxlength="18" required>
            <div class="form-hint">请确保填写的身份证号码真实有效</div>
          </div>
          
          <div class="form-group">
            <label class="form-label">手机号码</label>
            <input type="tel" class="form-control" placeholder="请输入您的手机号码" required>
          </div>
          
          <div class="form-group">
            <label class="form-label">住址</label>
            <input type="text" class="form-control" placeholder="请输入您的实际居住地址">
          </div>
          
          <div class="button-container">
            <div class="primary-button" id="next-step">
              <span>下一步</span>
              <i class="fas fa-arrow-right"></i>
            </div>
          </div>
        </section>
        
        <!-- 证件上传 -->
        <section class="form-section" id="id-upload" style="display: none;">
          <div class="section-title">
            <i class="fas fa-id-card"></i>
            <span>身份证件上传</span>
          </div>
          
          <div class="form-group">
            <label class="form-label">身份证人像面</label>
            <div class="upload-box" id="front-upload">
              <div class="upload-icon">
                <i class="fas fa-camera"></i>
              </div>
              <div class="upload-text">点击上传正面照片</div>
            </div>
            <div class="form-hint">请上传清晰完整的身份证人像面照片</div>
          </div>
          
          <div class="form-group">
            <label class="form-label">身份证国徽面</label>
            <div class="upload-box" id="back-upload">
              <div class="upload-icon">
                <i class="fas fa-camera"></i>
              </div>
              <div class="upload-text">点击上传背面照片</div>
            </div>
            <div class="form-hint">请上传清晰完整的身份证国徽面照片</div>
          </div>
          
          <div class="form-group">
            <label class="form-label">手持身份证照片</label>
            <div class="upload-box" id="holding-upload">
              <div class="upload-icon">
                <i class="fas fa-camera"></i>
              </div>
              <div class="upload-text">点击上传手持照片</div>
            </div>
            <div class="form-hint">请确保面部和身份证信息清晰可见</div>
          </div>
          
          <div class="button-container">
            <div class="primary-button" id="submit-auth">
              <span>提交认证</span>
              <i class="fas fa-check"></i>
            </div>
          </div>
        </section>
      </form>

      <!-- 认证成功状态 -->
      <div class="auth-success" id="auth-success">
        <section class="status-card">
          <div class="status-icon success">
            <i class="fas fa-check"></i>
          </div>
          <div class="status-title">实名认证已完成</div>
          <div class="status-desc">您的身份信息已通过验证，可以参与平台所有活动</div>
          
          <div class="auth-info">
            <div class="auth-info-item">
              <div class="auth-info-label">认证时间</div>
              <div class="auth-info-value" id="auth-time">2024-06-12</div>
            </div>
            <div class="auth-info-item">
              <div class="auth-info-label">认证状态</div>
              <div class="auth-info-value" id="auth-status">已认证</div>
            </div>
          </div>
        </section>
        
        <section class="form-section">
          <div class="section-title">
            <i class="fas fa-shield-alt"></i>
            <span>认证信息</span>
          </div>
          
          <div class="form-group">
            <div class="form-label">真实姓名</div>
            <div class="form-control" id="auth-name">张*华</div>
          </div>
          
          <div class="form-group">
            <div class="form-label">身份证号</div>
            <div class="form-control" id="auth-id">110***********5678</div>
          </div>
          
          <div class="form-group">
            <div class="form-label">手机号码</div>
            <div class="form-control" id="auth-phone">138****5678</div>
          </div>
        </section>
      </div>
    </main>

    <!-- 底部导航 -->
    <nav class="bottom-nav">
      <a href="index.html" class="nav-button">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </a>
      <a href="groupbuy.html" class="nav-button">
        <i class="fas fa-users"></i>
        <span>拼团</span>
      </a>
      <a href="shares.html" class="nav-button">
        <i class="fas fa-chart-line"></i>
        <span>股权</span>
      </a>
      <a href="profile.html" class="nav-button active">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </a>
    </nav>
  </div>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 步骤切换
      const nextStepBtn = document.getElementById('next-step');
      const personalInfo = document.getElementById('personal-info');
      const idUpload = document.getElementById('id-upload');
      const steps = document.querySelectorAll('.step');
      const stepProgress = document.querySelector('.step-progress');
      
      nextStepBtn.addEventListener('click', function() {
        // 简单验证
        const inputs = personalInfo.querySelectorAll('input[required]');
        let isValid = true;
        
        inputs.forEach(input => {
          if (!input.value.trim()) {
            isValid = false;
            input.style.borderColor = 'red';
          } else {
            input.style.borderColor = '';
          }
        });
        
        if (!isValid) {
          return;
        }
        
        // 切换到第二步
        personalInfo.style.display = 'none';
        idUpload.style.display = 'block';
        
        // 更新步骤状态
        steps[0].classList.remove('active');
        steps[0].classList.add('completed');
        steps[1].classList.add('active');
        
        // 更新进度条
        stepProgress.style.width = '50%';
      });
      
      // 模拟上传功能
      const uploadBoxes = document.querySelectorAll('.upload-box');
      
      uploadBoxes.forEach(box => {
        box.addEventListener('click', function() {
          // 模拟上传成功
          setTimeout(() => {
            this.innerHTML = '<img src="https://via.placeholder.com/250x150" alt="Uploaded" style="width: 100%; height: 100%; object-fit: cover; border-radius: 12px;">';
          }, 1000);
        });
      });
      
      // 提交认证
      const submitAuthBtn = document.getElementById('submit-auth');
      const authForm = document.getElementById('auth-form');
      const authSuccess = document.getElementById('auth-success');
      
      submitAuthBtn.addEventListener('click', function() {
        // 模拟提交和验证
        submitAuthBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> <span>提交中...</span>';
        
        setTimeout(() => {
          // 更新步骤状态
          steps[1].classList.remove('active');
          steps[1].classList.add('completed');
          steps[2].classList.add('active');
          steps[2].classList.add('completed');
          
          // 更新进度条
          stepProgress.style.width = '100%';
          
          // 切换到成功状态
          setTimeout(() => {
            authForm.classList.add('hidden');
            authSuccess.classList.add('active');
            
            // 更新认证信息
            document.getElementById('auth-time').textContent = new Date().toLocaleDateString();
            
            // 更新状态图标
            const statusIcon = document.querySelector('.status-icon');
            statusIcon.classList.remove('warning');
            statusIcon.classList.add('success');
            statusIcon.innerHTML = '<i class="fas fa-check"></i>';
          }, 500);
        }, 2000);
      });
      
      // 页面加载动画
      const sections = document.querySelectorAll('section');
      sections.forEach((section, index) => {
        section.style.opacity = '0';
        section.style.transform = 'translateY(20px)';
        section.style.transition = `opacity 0.5s ease, transform 0.5s ease`;
        
        setTimeout(() => {
          section.style.opacity = '1';
          section.style.transform = 'translateY(0)';
        }, 100 + (index * 150));
      });
    });
  </script>
</body>
</html> 